<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="timo-detail-page">
        <div class="timo-detail-title">基本信息</div>
        <table class="layui-table timo-detail-table">
            <colgroup>
                <col width="100px"><col>
                <col width="100px"><col>
            </colgroup>
            <tbody>
                <tr>
                    <th>数据编号</th>
                    <td th:text="${devices.id}"></td>
                    <th>项目名称</th>
                    <td th:text="${devices.title}"></td>
                </tr>
                <tr>
                    <th>设备编号</th>
                    <td th:text="${devices.number}"></td>
                    <th>设备型号</th>
                    <td th:text="${#dicts.keyValue('DEVICE_TYPE', devices.type)}"></td>
                </tr>
                <tr>
                    <th>设备品牌</th>
                    <td th:text="${devices.brand}"></td>
                    <th>控制类型</th>
                    <td th:text="${#dicts.keyValue('CONTROL_TYPE',devices.control)}"></td>
                </tr>
                <tr>
                    <th>安装高度</th>
                    <td th:text="${devices.height}"></td>
                    <th>验收时间</th>
                    <td th:text="${devices.date}"></td>
                </tr>
                <tr>
                    <th>设备状态</th>
                    <td th:text="${#dicts.keyValue('DEVICE_STATE',devices.state)}">设备状态</td>
                </tr>
                <tr>
                    <th>创建者</th>
                    <td th:text="${devices.createBy?.nickname}"></td>
                    <th>更新者</th>
                    <td th:text="${devices.updateBy?.nickname}"></td>
                </tr>
                <tr>
                    <th>录入时间</th>
                    <td th:text="${#dates.format(devices.createDate, 'yyyy-MM-dd HH:mm:ss')}"></td>
                    <th>更新时间</th>
                    <td th:text="${#dates.format(devices.updateDate, 'yyyy-MM-dd HH:mm:ss')}"></td>
                </tr>
            </tbody>
        </table>
    </div>
<script th:replace="/common/template :: script"></script>
</body>
</html>